package com.azdebugit.result.common;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

public class UserAuthInfoContext implements Serializable {
    private Long accountId;
    private Set<String> roleSet;
    private String bizOrgCode;
    private Map<String, Set<String>> userOrg;
    private Set<String> ignoreColumnSet;

    public Long getAccountId() {
        return this.accountId;
    }

    public Set<String> getRoleSet() {
        return this.roleSet;
    }

    public String getBizOrgCode() {
        return this.bizOrgCode;
    }

    public Map<String, Set<String>> getUserOrg() {
        return this.userOrg;
    }

    public Set<String> getIgnoreColumnSet() {
        return this.ignoreColumnSet;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public void setRoleSet(Set<String> roleSet) {
        this.roleSet = roleSet;
    }

    public void setBizOrgCode(String bizOrgCode) {
        this.bizOrgCode = bizOrgCode;
    }

    public void setUserOrg(Map<String, Set<String>> userOrg) {
        this.userOrg = userOrg;
    }

    public void setIgnoreColumnSet(Set<String> ignoreColumnSet) {
        this.ignoreColumnSet = ignoreColumnSet;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserAuthInfoContext)) {
            return false;
        } else {
            UserAuthInfoContext other = (UserAuthInfoContext)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$accountId = this.getAccountId();
                    Object other$accountId = other.getAccountId();
                    if (this$accountId == null) {
                        if (other$accountId == null) {
                            break label71;
                        }
                    } else if (this$accountId.equals(other$accountId)) {
                        break label71;
                    }

                    return false;
                }

                Object this$roleSet = this.getRoleSet();
                Object other$roleSet = other.getRoleSet();
                if (this$roleSet == null) {
                    if (other$roleSet != null) {
                        return false;
                    }
                } else if (!this$roleSet.equals(other$roleSet)) {
                    return false;
                }

                label57: {
                    Object this$bizOrgCode = this.getBizOrgCode();
                    Object other$bizOrgCode = other.getBizOrgCode();
                    if (this$bizOrgCode == null) {
                        if (other$bizOrgCode == null) {
                            break label57;
                        }
                    } else if (this$bizOrgCode.equals(other$bizOrgCode)) {
                        break label57;
                    }

                    return false;
                }

                Object this$userOrg = this.getUserOrg();
                Object other$userOrg = other.getUserOrg();
                if (this$userOrg == null) {
                    if (other$userOrg != null) {
                        return false;
                    }
                } else if (!this$userOrg.equals(other$userOrg)) {
                    return false;
                }

                Object this$ignoreColumnSet = this.getIgnoreColumnSet();
                Object other$ignoreColumnSet = other.getIgnoreColumnSet();
                if (this$ignoreColumnSet == null) {
                    if (other$ignoreColumnSet == null) {
                        return true;
                    }
                } else if (this$ignoreColumnSet.equals(other$ignoreColumnSet)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof UserAuthInfoContext;
    }

    /*@Override
    public int hashCode() {
        boolean PRIME = true;
        Object $accountId = this.getAccountId();
        int result = result * 59 + ($accountId == null ? 43 : $accountId.hashCode());
        Object $roleSet = this.getRoleSet();
        result = result * 59 + ($roleSet == null ? 43 : $roleSet.hashCode());
        Object $bizOrgCode = this.getBizOrgCode();
        result = result * 59 + ($bizOrgCode == null ? 43 : $bizOrgCode.hashCode());
        Object $userOrg = this.getUserOrg();
        result = result * 59 + ($userOrg == null ? 43 : $userOrg.hashCode());
        Object $ignoreColumnSet = this.getIgnoreColumnSet();
        result = result * 59 + ($ignoreColumnSet == null ? 43 : $ignoreColumnSet.hashCode());
        return result;
    }*/

    @Override
    public String toString() {
        return "UserAuthInfoContext(accountId=" + this.getAccountId() + ", roleSet=" + this.getRoleSet() + ", bizOrgCode=" + this.getBizOrgCode() + ", userOrg=" + this.getUserOrg() + ", ignoreColumnSet=" + this.getIgnoreColumnSet() + ")";
    }

    public UserAuthInfoContext() {
    }
}
